/**
 * 
 */
package advancedStreams;

import java.io.File;

/**
 * @author Student
 * 
 */
public class FileDemo {
	public static void main(String[] args) {
		File file = new File("C:\\WINDOWS");
		FileDemo.findFile(file);
	}

	public static void findFile(File filename) {
		
		if (filename.isDirectory()) {
			File[] files = filename.listFiles();
			for (File f : files) {
				if (f.isFile() && (f.length() > 100 || f.length() < 200)) {
					System.out.println(filename.getAbsolutePath());
				}
				findFile(f);
			}
		}
	}
}
